/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/29/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/  
package com.application.systemmanager.entity;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.manager.IBaseBean;


@Entity
@Table(name = "yf_system_config")
public class SystemConfig implements IBaseBean {

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;

	public SystemConfig() {

	}

	@Id
    @GeneratedValue(generator = "generator")    
	@GenericGenerator(name="generator",strategy="increment")
	@Column(name = "id")
	private Long id;

	@Column(name = "cofig_code")
	private String cofigCode;

	@Column(name = "config_type")
	private String configType;

	@Column(name = "config_name")
	private String configName;

	@Column(name = "config_value")
	private String configValue;

	@Column(name = "data_type")
	private String dataType;

	@Column(name = "validate")
	private String validate;

	@Column(name = "bak1")
	private String bak1;

	@Column(name = "bak2")
	private String bak2;

	/**
	 * @return Returns the Id.
	 */
	public Long getId() {
		return this.id;
	}

	/**
	 * @param id
	 *        Set the id.
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return Returns the CofigCode.
	 */
	public String getCofigCode() {
		return this.cofigCode;
	}

	/**
	 * @param cofigCode
	 *        Set the cofigCode.
	 */
	public void setCofigCode(String cofigCode) {
		this.cofigCode = cofigCode;
	}

	/**
	 * @return Returns the ConfigType.
	 */
	public String getConfigType() {
		return this.configType;
	}

	/**
	 * @param configType
	 *        Set the configType.
	 */
	public void setConfigType(String configType) {
		this.configType = configType;
	}

	/**
	 * @return Returns the ConfigName.
	 */
	public String getConfigName() {
		return this.configName;
	}

	/**
	 * @param configName
	 *        Set the configName.
	 */
	public void setConfigName(String configName) {
		this.configName = configName;
	}

	/**
	 * @return Returns the ConfigValue.
	 */
	public String getConfigValue() {
		return this.configValue;
	}

	/**
	 * @param configValue
	 *        Set the configValue.
	 */
	public void setConfigValue(String configValue) {
		this.configValue = configValue;
	}

	/**
	 * @return Returns the DataType.
	 */
	public String getDataType() {
		return this.dataType;
	}

	/**
	 * @param dataType
	 *        Set the dataType.
	 */
	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	/**
	 * @return Returns the Validate.
	 */
	public String getValidate() {
		return this.validate;
	}

	/**
	 * @param validate
	 *        Set the validate.
	 */
	public void setValidate(String validate) {
		this.validate = validate;
	}

	/**
	 * @return Returns the Bak1.
	 */
	public String getBak1() {
		return this.bak1;
	}

	/**
	 * @param bak1
	 *        Set the bak1.
	 */
	public void setBak1(String bak1) {
		this.bak1 = bak1;
	}

	/**
	 * @return Returns the Bak2.
	 */
	public String getBak2() {
		return this.bak2;
	}

	/**
	 * @param bak2
	 *        Set the bak2.
	 */
	public void setBak2(String bak2) {
		this.bak2 = bak2;
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
	}
}
